<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="usersettings.aspx.cs" Inherits="GleamTech.FileVista.UserSettingsPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title><%=language.GetString("650")%></title>
    	<link href="filevistacontrol/styles/default.css" rel="stylesheet" />
		<script type="text/javascript" src="filevistacontrol/scripts/library/utility.js"></script>
		<script type="text/javascript">
            function logout() {
                XmlRequest("POST", "administration.asmx/LogoutUser", "", onLogoutXmlComplete, onXmlError);
            }
            
            function onLogoutXmlComplete(xmlHttp) {
                parent.window.location.href = "./login.aspx";
            }

            function onXmlError(statusText) {
	            parent.window.location.href = "./login.aspx";
            }
            
            function passwordChangeComplete() {
	            parent.window.location.href = "./";
            }
            
            function settingsChangeComplete() {
	            parent.window.location.reload(true);
            }
            
            function showClientMessage(confirmMessage) {
                var clientMessage = document.getElementById("ClientMessage");

                if (confirmMessage)
                    return confirm(clientMessage.value);
                else
                    alert(clientMessage.value);
            }
        </script>		
    </head>
    <body id="BodyTag" runat="server" class="dialog">
        <form id="form1" runat="server">
            <asp:HiddenField ID="ClientMessage" runat="server" />
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true" ShowSummary="false" />
			<table cellpadding="0" cellspacing="10" border="0" style="width: 100%; height: 100%;">
<%if (!changePasswordOnly)
  {%>			
                <tr>
                    <td><%=language.GetString("651")%>:</td>
                    <td><asp:DropDownList ID="DropDownListCultures" runat="server" style="width: 250px"></asp:DropDownList></td>
                </tr>
                <tr>
                    <td colspan="2"><hr /></td>
                </tr>
<%} %>                
                <tr>
                    <td colspan="2">
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                        <table cellpadding="4" cellspacing="0" border="0"  style="margin-left: 20px; margin-top: 5px">
                            <tr>
                                <td><%=language.GetString("503")%></td>
                                <td align="right">
                                    <asp:TextBox ID="Password" runat="server" style="width: 200px" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Password">!</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td><%=language.GetString("596")%></td>
                                <td align="right">
                                    <asp:TextBox ID="PasswordConfirm" runat="server" style="width: 200px" TextMode="Password"></asp:TextBox>
                                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="PasswordConfirm" ControlToValidate="Password">!</asp:CompareValidator>
                                </td>
                            </tr>
                        </table>
                     </td>
                 </tr>
            </table>
			<div style="position:absolute; right:5px; bottom:10px"><asp:Button ID="Button1" runat="server" style="width: 80px" OnClick="Button1_Click" />&nbsp;<asp:Button ID="Button2" runat="server" Text="Button" style="width: 80px" OnClientClick="parent.ModalDialog.close(); return false;" /></div>
        </form>
    </body>
</html>
